package com.zzl.finance.order.dto;

import com.zzl.apidoc.annotation.ApidocModel;
import com.zzl.apidoc.annotation.ApidocModelProperty;
import lombok.Data;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * @author sunpp
 * @date 2022-03-07 10:41:16
 */
@Data
@ApidocModel
@SuppressWarnings("javadoc")
public class OrderInvoiceUpdateDto implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApidocModelProperty(description = "主键", example = "")
    private String id;

    @ApidocModelProperty(description = "发票种类 普通增值税发票 2. 专用增值税发票", example = "")
    private Integer invoiceCategory;

    @NotNull(message = "开发票企业id 不能为空")
    @ApidocModelProperty(description = "开发票企业id", example = "")
    private Integer invoiceEnterpriseId;

    @ApidocModelProperty(description = "开票企业名称", example = "")
    private String invoiceEnterpriseName;

    @ApidocModelProperty(description = "统一社会信用代码", example = "")
    private String socialCreditCode;

    @ApidocModelProperty(description = "开户行")
    private String depositBank;

    @ApidocModelProperty(description = "发票类型 1.电子发票  2 纸质发票")
    private Integer invoiceType;

    @Email(message = "邮箱格式不正确")
    @ApidocModelProperty(description = "邮箱")
    private String email;

    @ApidocModelProperty(description = "开户账户", example = "")
    private String paymentAccount;

    @ApidocModelProperty(description = "备注")
    private String remark;

    @ApidocModelProperty(description = "发票地址", example = "")
    private String invoiceAddress;

    @NotBlank(message = "经办人手机号不能为空")
    @Pattern(regexp = "(^1[0-9]{10}$)", message = "经办人手机号输入不正确！")
    @ApidocModelProperty(description = "联系电话", example = "")
    private String phone;


}
